package com.shujia.wyh.day04;

/*
    二维数组的语句定义格式3：
        数据类型[][] 数组名 = new 数据类型[][]{{元素1,元素2,元素3},{元素1,元素2},{元素1,元素2,元素3,元素4},{元素1},...};
 */
public class Array2Demo3 {
    public static void main(String[] args) {
        //使用二维数组语句定义格式3创建二维数组
        String[][] arr = new String[][]{{"小花","小白"},{"小黑","小红","小小"},{"王庆","程想","范梦迪","杨志"}};

        //二维数组语句定义格式3的简化写法：
        String[][] arr2 = {{"小花","小白"},{"小黑","小红","小小"},{"王庆","程想","范梦迪","杨志"}};

//        String[][] arr3;
//        arr3 = {{"小花","小白"},{"小黑","小红","小小"},{"王庆","程想","范梦迪","杨志"}};
    }
}
